//
//  UIImageView+CycleExtension.h
//  iOSHeartAnimation
//
//  Created by ddy on 2018/8/10.
//  Copyright © 2018年 ddy. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIImageView (CycleExtension)
/**
 * 1.用UIGraphics配合UIBezierPath绘制圆形图片
 */
- (void)cycle_circleImageView;
/**
 * 2.用CAShapeLayer配合UIBezierPath绘制圆形图片
 */
- (void)cycle_circleImageViewWithBezier;
/**
 * 3.截取中间部分的图
 */
+ (void)cycle_getCenterImageContentView:(UIImageView *)imageView;
/**
 * 4.根据url，宽度固定，等比例缩放高度
 */
+ (double)cycle_getImageHeightFromImageUrl:(NSString *)url equalWidth:(double)itemW;

@end
